<link href="<?php echo base_url()?>assets/css/icons/icol16.css" rel="stylesheet">
<div id="page-wrapper">

    <div class="container-fluid">

        <!-- Page Heading -->
        <div class="row">
            <div class="col-lg-12">
                <h1 class="page-header">
                    Kelola Pegawai
                </h1>
                <ol class="breadcrumb">
                    <li>
                        <i class="fa fa-dashboard"></i>  <a href="<?php echo base_url(); ?>home">Dashboard</a>
                    </li>
                    <li class="active">
                        <i class="fa fa-edit"></i> Kelola Pegawai
                    </li>
                    <li class="active">
                        <i></i> Teknisi
                    </li>
                </ol>
            </div>
        </div>
        <!-- /.row -->
		<div class="col-lg-8">
                <h2>List Teknisi</h2>
                <a href="<?php echo base_url()?>modul/teknisi/add" class="btn"><i class="icol-add"></i> Add</a>
                <div class="">
                    <table class="table table-hover table-striped">
                        <thead>
                            <tr>
                                <th>No</th>
                                <th>Nama</th>
                                <th>Username</th>
                                <th>Keahlian</th>
                                <th>Status</th>
                                <th>Action</th>
                            </tr>
                        </thead>
                        <tbody>
                            <?php $i = 1 ?>
                            <?php foreach($rows as $row): ?>
                            <tr>
                                <td><?php echo $i ?></td>
                                <td><?php echo $row->nama_teknisi ?></td>
                                <td><?php echo $row->username_teknisi ?></td>
                                <td><?php echo $row->bidang_teknisi ?></td>
                                <td><?php if ($row->status == 1) echo "Aktif"; else echo "Tidak Aktif"; ?> </td>
                                <td>
                                    <a href="<?php echo base_url()?>modul/teknisi/show/<?php echo $row->id_teknisi?>" class='btn'><i class='icol-magnifier'></i> Show</a>
                                    <a href="<?php echo base_url()?>modul/teknisi/edit/<?php echo $row->id_teknisi?>" class='btn'><i class='icol-pencil'></i> Edit</a>
                                    <?php if ($row->status == 1) {?>
                                            <a href="<?php echo base_url()?>modul/teknisi/nonaktif/<?php echo $row->id_teknisi?>" class='btn' OnClick="return confirm('Are you sure?');"><i class='icol-cross'></i> Nonaktifkan</a> <?php ;} 
                                          else {?>
                                            <a href="<?php echo base_url()?>modul/teknisi/aktif/<?php echo $row->id_teknisi?>" class='btn' OnClick="return confirm('Are you sure?');"><i class='icol-accept'></i> Aktifkan</a> <?php ;} ?>
                                </td>
                            </tr>
                            <?php $i++; ?>
                            <?php endforeach ?>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
        <!-- /.row -->

</div>
<!-- /.container-fluid -->
